package cn.zhoutao.org.domain;

import cn.zhoutao.basic.base.domain.Base;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends Base{

    private String sn;
    private String name;
    //部门的上级分类层级id
    @ApiModelProperty("部门的上级分类层级id")
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Long parent_id;
    private Long shop_id;
    private Employee manager;//部门管理员
    private Department parent;//上级部门
    //儿子们
   @JsonInclude(JsonInclude.Include.NON_EMPTY)//集合不为空才返回
    private List<Department> children = new ArrayList<>();

}
